package com.lbg.drug.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lbg
 * @since 2022-04-26
 */
public class Stock implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId("stock_id")
    private Integer stockId;

    @TableField("drug_id")
    private Integer drugId;

    /**
     * 药品数量
     */
    @TableField("drug_amount")
    private Integer drugAmount;

    @TableField("update_time")
    private Date updateTime;

    /**
     * 总价值
     */
    @TableField("global_value")
    private Integer globalValue;


    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public Integer getDrugAmount() {
        return drugAmount;
    }

    public void setDrugAmount(Integer drugAmount) {
        this.drugAmount = drugAmount;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getGlobalValue() {
        return globalValue;
    }

    public void setGlobalValue(Integer globalValue) {
        this.globalValue = globalValue;
    }

    @Override
    public String toString() {
        return "Stock{" +
        "stockId=" + stockId +
        ", drugId=" + drugId +
        ", drugAmount=" + drugAmount +
        ", updateTime=" + updateTime +
        ", globalValue=" + globalValue +
        "}";
    }
}
